Fix nginx IPv6 resolution causing backend connection failures#385
Merged
ShaneIsrael merged 2 commits intodevelopfrom Jan 17, 2026
Merged
Fix nginx IPv6 resolution causing backend connection failures#385ShaneIsrael merged 2 commits intodevelopfrom
ShaneIsrael merged 2 commits intodevelopfrom
Conversation
…alhost Co-authored-by: ShaneIsrael <[email protected]>
Copilot
AI
changed the title
[WIP] Update Nginx configuration to use IPv4 localhost
Fix nginx IPv6 resolution causing backend connection failures
Jan 17, 2026
Owner
|
Hoping this fixes an upstream connect error that happens all the time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nginx resolves
localhostto IPv6[::1]on some systems, but the backend only listens on IPv4, causing "upstream server temporarily disabled while connecting to upstream" errors.Changes
proxy_passdirectives in/api/*and/w/*locations to use explicit IPv4 address127.0.0.1:5000instead oflocalhost:5000app/nginx/prod.conf) and development (app/nginx/dev.template.conf) configurationslocation ~ /api/.*$ { - proxy_pass http://localhost:5000; + proxy_pass http://127.0.0.1:5000; proxy_http_version 1.1;Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.